import {randomIntNum} from './num'

export function randomItem <T>(list: Array<T>): T {
  return list[randomIntNum(list.length)]
}
